package com.sikaryofficial.backend.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * @author : qinjinyuan
 * @desc : 邮箱发送验证码
 * @date : 2023/10/28 16:01
 */
@Getter
@Setter
@ToString
@ApiModel(value = "邮箱发送验证码请求入参", description = "邮箱发送验证码请求入参")
public class SendMailCaptchaReq {

    @ApiModelProperty(value = "邮箱地址", required = true, example = "john.doe@example.com")
    @NotEmpty(message = "email could not be empty.")
    @Email(regexp = "[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+", message = "email format error.")
    private String emailAddress;

    @ApiModelProperty(value = "发送源-normal 或者 gmail", example = "gmail")
    private String sendSource;
}
